package BookTest;

public class C4EqualTest {
    public static void main(String[] args) {
          C4Dog a = new C4Dog();
          C4Pig b = new C4Pig();
          System.out.println("猪和狗是同类吗？"+a.equals(b));
          System.out.println("狗和猪是同类吗？"+b.equals(a));
    }
}
